<?php
 # <!-- This code simply changes the filterlist. -->

session_start();
try{
	$filepath = $_SESSION['filterlist'].$_GET['q'];
	
	if($fp = fopen($filepath, 'r')){
		$data = fread($fp, filesize($filepath));
		fclose($fp);
		echo $data;
	}
	else{
		echo "There's was a problem reading the file.";
	}
	
}
catch(Exception $err){
	var_dump($err);
}
?>
